
var person1 = { name: 'Jack'};
var person2 = new Object({ name: 'Jack'})

console.log(person1)
console.log(person2)

var person3 = Object.create({});
console.log(person3)

function Person() {
    this.name = 'Lucy'
}
var person4 = new Person()
console.log(person4)

class Jack {
    constructor() {
        this.name = 'Jack'
    }
}
var person5 = new Jack()

console.log(person5)


// { name: 'Jack' }
// { name: 'Jack' }
// {}
// Person { name: 'Lucy' }
// Jack { name: 'Jack' }